<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/4/17
  Time: 10:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <center>
        <h1>员工信息表</h1>
        <table>
            <tr>
                <td>编号</td>
                <td>姓名</td>
                <td>生日</td>
                <td>性别</td>
                <td>电话</td>
                <td>职位</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${employees}" var="employee">
                <tr>
                    <td>${employee.id}</td>
                    <td>${employee.name}</td>
                    <td>${employee.birthday}</td>
                    <td>${employee.gender}</td>
                    <td>${employee.phone}</td>
                    <td>${employee.jobs}</td>
                    <td><a href="/employee?method=updateEmployeePage&id=${employee.id}">修改</a> <a href="/employee?method=deleteEmployee&id=${employee.id}" onclick="return window.confirm('是否删除')">删除</a></td>
                </tr>
            </c:forEach>
        </table>
        <a href="addEmployee.jsp">添加员工信息</a>
    </center>
</body>
</html>
